package com.mohe.dangjian.service.interfaces;

import java.util.List;
import java.util.Map;

import com.mohe.dangjian.model.Admin;
import com.mohe.dangjian.model.Member;
import com.mohe.dangjian.utils.Page;


/**
 * 党员 接口
 * 
 * @author wcx
 *
 */
public interface IMember {

	/**
	 * 根据条件查询党员信息，只显示指定页的信息
	 * 
	 * @param member
	 * @param page
	 * @param paramMap
	 * @return
	 */
	public List<Member> getMemberList(Member member, Page page, Map<String, String> paramMap);

	/**
	 * 根据条件查询行数
	 * 
	 * @param member
	 * @param paramMap
	 * @return
	 */
	public Integer getCount(Member member, Map<String, String> paramMap);

	/**
	 * 保存党员信息
	 * 
	 * @param member
	 * @return
	 */
	public boolean saveMember(Member member);
	
	/**
	 * 批量保存党员信息
	 * 
	 * @param member
	 * @return
	 */
	public boolean saveMemberList(List<Member> memberList);

	/**
	 * 根据编号查询信息
	 * 
	 * @param timeKey
	 * @return
	 */
	public Member getMemberById(Long timeKey);

	/**
	 * 编辑党员信息
	 * 
	 * @param member
	 * @return
	 */
	public boolean updateMember(Member member);

	/**
	 * 根据编号删除信息
	 * 
	 * @param timeKey
	 * @return
	 */
	public boolean delMember(Long timeKey);

	/**
	 * 获取所有党员
	 * 
	 * @return
	 */
	public List<Member> getAllMember();
	
	/**
	 * 根据条件查询党员信息
	 * @param member
	 * @return
	 */
	public List<Member> getMemberList(Member member, Map<String, String> paramMap);
}
